<template>
  <div class="g-card-label">
    <div class="key">{{ label }}</div>
    <div class="value">
      <slot></slot>
    </div>
  </div>
</template>

<script>
export default {
  name: "g-card-label",
  props: {
    label: {
      type: String
    }
  }
};
</script>

<style lang="less" scoped>
.g-card-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  font-size: 14px;
  line-height: 20px;

  .key {
    font-weight: 400;
    text-align: left;
    color: @field-placeholder-text-color;
  }

  .value {
    font-weight: 500;
    text-align: right;
    color: @text-color;
  }
}
</style>
